package demo.util;

import demo.exception.BaseException;

/**
 * @author lichenyi
 * @date 2017-11-13-0013.
 */
public class Result<T> {

    private Integer errorCode;
    private String description;
    private T result;

    public Result(){
        this.errorCode = 0;
        this.description = "success";
    }

    public Result(BaseException exception){
        exception.getMessage();
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
